﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.BL.Entities.Security;
using QUANLYCHAMCONG.DAO.DAO.Security;
using System.Data;

namespace QUANLYCHAMCONG.BL.BUS.Security
{
    public class MENUBUS
    {
        public MENUBUS() { }
        public static bool Insert(FORM frm)
        {
            MENUDAO dao = new MENUDAO();
            return dao.Insert(frm);
        }
        public static bool Update(FORM frm)
        {
            MENUDAO dao = new MENUDAO();
            return dao.Update(frm);
        }
        public static bool Delete(FORM frm)
        {
            MENUDAO dao = new MENUDAO();
            return dao.Delete(frm);
        }
        public static DataTable SelectAll()
        {
            MENUDAO dao = new MENUDAO();
            return dao.SelectALL();
        }
        public static DataTable SelectPK(FORM frm)
        {
            MENUDAO dao = new MENUDAO();
            return dao.SelectByPK(frm);
        }
        public static string GetID()
        {
            MENUDAO dao = new MENUDAO();
            return "MN" + dao.GetID().ToString();
        }
    }
}
